<!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3c.org/tr/1999/rec-html401-19991224/loose.dtd">
<!-- saved from url=(0025)http://www.pageadmin.net/ -->
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>选择课程</title>
        <meta content="text/html" charset="utf-8" http-equiv="content-type">
        <script src="../web/file/js/jquery-1.7.2.js" type="text/javascript" language="javascript"></script>

        <link type="text/css" href="../web/file/js/jquery.ui.all.css" rel="stylesheet" />
        <script type="text/javascript" src="../web/file/js/jquery-1.4.2.js"></script>
        <script type="text/javascript" src="..web/file/js/jquery.bgiframe-2.1.1.js"></script>

        <script typ="text/javascript" language="javascript" >
            
            function course11(){
                var cou = document.getElementById('course').value;
                if (cou != '==请选择=='){
                    $.ajax({
                        
                        type:"POST",
                        url:  "index.php?con=Course&act=getCourseName",
                        data:"&con="+cou,
                        
                        success:function(mes) {
                            $('#sunCourse').html(mes);
                        }
                        
                    }); 
                }
            }
        </script>
    </head>
    <body>
        <form action="index.php?con=Course&act=insertCourse" method ="post">
            <div style="float: left;">
                <select id="course" name="course" onchange="course11()">
                    <option>==请选择==</option>
                    <?php
                    foreach ($course as $key => $value) {
                        echo '<option>' . $value['name'] . '</option>';
                    }
                    ?>
                </select>
            </div>
            <div>
                <input type="submit" value="提交" ></input>
            </div>
            <div id="sunCourse">

            </div>
        </form>
    </body>
</html>